<%@ page contentType="text/html" language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib  uri="/struts-tags" prefix="s"%>
<jsp:include page="../include/_dwz_form_head.jsp" />
<s:if test="%{flag ==2}">
<div class="pageHeader">
<!-- 
	flag = 2  控制着页面内容同时也控制着 action 字符转换的问题
	tab = 1 主要页面排序时，不进行人员名称文字编码转换
 -->
<form rel="pagerForm"  onsubmit="return navTabSearch(this);" action="systemsetting/MyWorkLogList?flag=2&tab=1" method="post">
<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td class="dateRange">
					姓&nbsp;&nbsp;&nbsp;&nbsp;名：
					<input type="text" id="operatingName" name="b_T_Sys_OperatingLogs.operatingName" value="${b_T_Sys_OperatingLogs.operatingName}"/>
				</td>
				<td>
					任务内容：
					<input type="text" id="operatingContent" name="b_T_Sys_OperatingLogs.operatingContent" value="${b_T_Sys_OperatingLogs.operatingContent}"/>
				</td>
				<td>
					开始日期：
					<input type="text" id="strattime" name="strattime" value="${strattime}" class="date"/>
				</td>
				<td>
					至&nbsp;&nbsp;&nbsp;
					<input type="text" id="endtime" name="endtime" value="${endtime}" class="date"/>
				</td>
				<!-- <td><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></td> -->
			</tr>
		</table>
		<div class="subBar">
			<ul>
				  <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit">
                                   		 搜索
                                </button>
                            </div>
                        </div>
                    </li>
			</ul>
		</div>
	</div>
</form>
</div>
<div class="pageContent">
<div class="panelBar">
		<ul class="toolBar">
			  <li><a class="add" href="systemsetting/workLogDital" target="navTab"><span>工作总结</span></a></li>
			<li>
		</ul>
	</div>
	<table class="table" width="100%"  layoutH="123">
</s:if>


<s:elseif test="%{flag == 8}">
<div class="pageHeader">
<form rel="pagerForm"  onsubmit="return navTabSearch(this);" action="systemsetting/MyWorkLogList?flag=8" method="post">
<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td class="dateRange">
					姓&nbsp;&nbsp;&nbsp;&nbsp;名：
					<input type="text" id="operatingName" name="b_T_Sys_OperatingLogs.operatingName" value="${b_T_Sys_OperatingLogs.operatingName}"/>
				</td>
				<td>
					任务内容：
					<input type="text" id="operatingContent" name="b_T_Sys_OperatingLogs.operatingContent" value="${b_T_Sys_OperatingLogs.operatingContent}"/>
				</td>
				<td>
					开始日期：
					<input type="text" id="strattime" name="strattime" value="${strattime}" class="date"/>
				</td>
				<td>
					至&nbsp;&nbsp;&nbsp;
					<input type="text" id="endtime" name="endtime" value="${endtime}" class="date"/>
				</td>
				<!-- <td><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></td> -->
			</tr>
		</table>
		<div class="subBar">
			<ul>
				  <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit">
                                   		 搜索
                                </button>
                            </div>
                        </div>
                    </li>
			</ul>
		</div>
	</div>
</form>
</div>
<div class="pageContent">
<div class="panelBar">
		<ul class="toolBar">
			 <!--   <li><a class="add" href="systemsetting/workLogDital" target="navTab"><span>工作总结</span></a></li>
			<li>-->
		</ul>
	</div>
	<table class="table" width="100%"  layoutH="123">
</s:elseif>
<s:else>
	<form rel="pagerForm"  onsubmit="return dialogSearch(this);" action="systemsetting/MyWorkLogList?flag=''&taskid=${taskid }" method="post"></form>
	<div class="pageContent">
	<table class="table" width="100%"  targetType="dialog" layoutH="50">
</s:else>
		<thead>
			<tr>
                <th width="3%" align="center">序号</th>
				<th width="7%" align="center" orderField="operating_name" <c:if test="${(pager.orderField)== 'operating_name'}">class="${pager.orderDirection}"
				</c:if>>姓名 </th>
				<th width="75%" align="left" orderField="operating_content" <c:if test="${(pager.orderField)== 'operating_content'}">class="${pager.orderDirection}"
				</c:if>>任务内容</th>
				<th width="10%" align="center" orderField="operating_time" <c:if test="${(pager.orderField)== 'operating_time'}">class="${pager.orderDirection}"
				</c:if>>时间</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${pager.pageRecords}" var="b_T_Sys_OperatingLogs" varStatus="s">
			<tr target="sid_user" rel="1">
               	<td>${s.count +pager.pageSize*(pager.currentPage-1)}</td>
               	<td >${b_T_Sys_OperatingLogs.operatingName}</td>
               	
				<td title="${b_T_Sys_OperatingLogs.operatingContent}.----备注:${b_T_Sys_OperatingLogs.remark}">
				<c:choose>
				 <c:when test="${b_T_Sys_OperatingLogs.remark == '日志补充'}"> 
	               		<a href="systemsetting/workLogDitalRead?b_T_Sys_OperatingLogs.logsId=${b_T_Sys_OperatingLogs.logsId}" target="navTab" title="查看日志"> <font color="blue">
	               		${b_T_Sys_OperatingLogs.operatingContent}
						<c:if test="${!empty b_T_Sys_OperatingLogs.remark}">,(<font color="red">备注:${b_T_Sys_OperatingLogs.remark}</font>)</c:if>
	               		</font></a>
	             </c:when>
	               	<c:otherwise>
	               		${b_T_Sys_OperatingLogs.operatingContent}
						<c:if test="${!empty b_T_Sys_OperatingLogs.remark}">,(<font color="red">备注:${b_T_Sys_OperatingLogs.remark}</font>)</c:if>
	               	</c:otherwise>
	             </c:choose>
				</td>
				<td >${b_T_Sys_OperatingLogs.operatingTime}</td>
            </tr>
        </c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
        <jsp:include page="../include/_dwz_form_bottom.jsp" />
    </div>
</div>

